<p class="Paragraph"><help:paragraphinfo state="U" number="2"/>Returns the specified portion of a string expression (<span style="font-weight:bold;">Mid function</span>), or replaces the portion of a string expression with another string (<span style="font-weight:bold;">Mid statement</span>).</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="4" xmlns:help="http://openoffice.org/2000/help"/>Mid (Text As String, Start As Integer [, Length As Integer]) or Mid (Text As String, Start As Integer , Length As Integer, Text As String)</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="8" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Text:</span> Any string expression that you want to modify.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="9" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Start: </span>Integer expression that indicates the character position within the string where the string portion that you want to replace or to return begins.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Length:</span> Integer expression that returns the number of characters that you want to replace or return.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="11" xmlns:help="http://openoffice.org/2000/help"/>If the Length parameter in the <span class="T1">Mid function</span> is omitted, all characters in the string expression from the start position to the end of the string are returned.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="12" xmlns:help="http://openoffice.org/2000/help"/>If the Length parameter in the <span class="T1">Mid statement</span> is less than the length of the text that you want to replace, the text is reduced to the specified length.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="13" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Text:</span> The string to replace the string expression (<span class="T1">Mid statement</span>).</p>
<p class="PropText"><help:paragraphinfo state="U" number="16" xmlns:help="http://openoffice.org/2000/help"/>Dim sInput As String</p>
<p class="PropText"><help:paragraphinfo state="U" number="17" xmlns:help="http://openoffice.org/2000/help"/>Dim sUS_date As String</p>
<p class="PropText"><help:paragraphinfo state="U" number="18" xmlns:help="http://openoffice.org/2000/help"/>sInput = InputBox("Please input a date in the international format 'YYYY-MM-DD'")</p>